﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bitirme.DAL.Enum;

namespace Bitirme.DAL.Entities
{
    public class Project
    {
        private int _ID;
        private string _Name;
        private string _Subject;
        private string _Details;
        private State _ProjectState;
        private List<WorkPackage> _PackageList;
        private ProjectManager _Manager;
        private decimal _Cost;
        private DateTime _StartDate;
        private DateTime _EndDate;
        private int _Duration;
        private List<Assignment> _AssignmentList;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }        
        public string Subject
        {
            get { return _Subject; }
            set { _Subject = value; }
        }        
        public string Details
        {
            get { return _Details; }
            set { _Details = value; }
        }        
        public State ProjectState 
        {
            get { return _ProjectState; }
            set { _ProjectState = value; }
        }
        public List<WorkPackage> PackageList
        {
            get { return _PackageList; }
            set { _PackageList = value; }    
        }
        public ProjectManager Manager
        {
            get { return _Manager; }
            set { _Manager = value; }
        }
        public decimal Cost
        {
            get { return _Cost; }
            set { _Cost = value; }
        }
        public DateTime StartDate 
        {
            get { return _StartDate; }
            set { _StartDate = value; }
        }
        public DateTime EndDate
        {
            get { return _EndDate; }
            set { _EndDate = value; }
        }
        public int Duration 
        {
            get { return _Duration; }
            set { _Duration = value; }
        }
        public List<Assignment> AssignmentList
        {
            get { return _AssignmentList; }
            set { _AssignmentList = value; }
        } 
        public Project()
        {

            this._ID = -1;
            this._Name = String.Empty;
            this._Subject = String.Empty;
            this._Details = String.Empty;
            this._ProjectState = 0;
        }
    }
}